package cn.sh.library.mgts.framework.exception;

import cn.sh.library.mgts.base.ResponseCodeEnums;

public class CustomRuntimeException extends RuntimeException {

	private static final long serialVersionUID = -5207885419480666883L;

	protected String code;

	protected String msg;

	protected String message;// 打印出的日志信息

	public CustomRuntimeException(ResponseCodeEnums enums, String message) {
		super();
		this.code = enums.getCode();
		this.msg = enums.getMsg();
		this.message = message;
	}

	public CustomRuntimeException(ResponseCodeEnums enums) {
		super();
		this.code = enums.getCode();
		this.msg = enums.getMsg();
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public CustomRuntimeException() {
		super();
	}

	public CustomRuntimeException(String message, Throwable cause) {
		super(message, cause);
	}

	public CustomRuntimeException(String message) {
		super(message);
	}

}
